package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechDataBlackList;
import com.appkubes.mall.core.po.FintechDataBlackListExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechDataBlackListMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechDataBlackListSqlProvider.class, method="countByExample")
    long countByExample(FintechDataBlackListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechDataBlackListSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechDataBlackListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_data_black_list",
        "where black_list_key = #{blackListKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String blackListKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_data_black_list (black_list_key, app_key, ",
        "id_card_num, real_name, ",
        "phone, data_source, ",
        "description, expire_date, ",
        "create_date)",
        "values (#{blackListKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{idCardNum,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, ",
        "#{phone,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, ",
        "#{description,jdbcType=VARCHAR}, #{expireDate,jdbcType=TIMESTAMP}, ",
        "#{createDate,jdbcType=TIMESTAMP})"
    })
    int insert(FintechDataBlackList record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechDataBlackListSqlProvider.class, method="insertSelective")
    int insertSelective(FintechDataBlackList record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechDataBlackListSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="black_list_key", property="blackListKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="id_card_num", property="idCardNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="data_source", property="dataSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="expire_date", property="expireDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechDataBlackList> selectByExampleWithRowbounds(FintechDataBlackListExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechDataBlackListSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="black_list_key", property="blackListKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="id_card_num", property="idCardNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="data_source", property="dataSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="expire_date", property="expireDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechDataBlackList> selectByExample(FintechDataBlackListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "black_list_key, app_key, id_card_num, real_name, phone, data_source, description, ",
        "expire_date, create_date",
        "from fintech_data_black_list",
        "where black_list_key = #{blackListKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="black_list_key", property="blackListKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="id_card_num", property="idCardNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="data_source", property="dataSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR),
        @Result(column="expire_date", property="expireDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechDataBlackList selectByPrimaryKey(String blackListKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechDataBlackListSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechDataBlackList record, @Param("example") FintechDataBlackListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechDataBlackListSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechDataBlackList record, @Param("example") FintechDataBlackListExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechDataBlackListSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechDataBlackList record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_data_black_list
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_data_black_list",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "id_card_num = #{idCardNum,jdbcType=VARCHAR},",
          "real_name = #{realName,jdbcType=VARCHAR},",
          "phone = #{phone,jdbcType=VARCHAR},",
          "data_source = #{dataSource,jdbcType=VARCHAR},",
          "description = #{description,jdbcType=VARCHAR},",
          "expire_date = #{expireDate,jdbcType=TIMESTAMP},",
          "create_date = #{createDate,jdbcType=TIMESTAMP}",
        "where black_list_key = #{blackListKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechDataBlackList record);
}